package com.haizhi.messagehub.bean.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.FieldNameConstants;
import lombok.experimental.SuperBuilder;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

@Data
@FieldNameConstants
@SuperBuilder
@AllArgsConstructor
@NoArgsConstructor
@ToString(callSuper = true)
@Entity
@Table(name = "MESSAGEHUB_TOPIC")
public class MessageHubTopicBean {
    @Id
    @Column(name = "id", nullable = false)
    private Long id;

    @Column(name = "topic", nullable = false, columnDefinition = "varchar(255)")
    private String topic;

    @Column(name = "fields")
    private String fields;

    @Column(name = "info_type", nullable = false, columnDefinition = "varchar(255)")
    private String infoType;
}
